import request from '@/utils/request'
// 平台视频库
export function getList(data) {
  return request({
    url: '/goodsPlatform/listData',
    method: 'post',
    data
  })
}
// 修改图片
export function setCustomImage(data) {
  return request({
    url: 'goodsPlatform/setCustomImg',
    method: 'post',
    data
  })
}
// 上传图片长
export function uploadCustomImage(data) {
  return request({
    url: 'goodsPlatform/uploadCustomImage',
    method: 'post',
    data,
    timeout: 100 * 1000,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export function refresh() {
  return request({
    url: '/goodsPlatform/refresh',
    method: 'post'
  })
}
export function setWarningSetting(data) {
  return request({
    url: '/goodsPlatform/setWarningSetting',
    method: 'post',
    data
  })
}

export function getWarningSetting() {
  return request({
    url: '/goodsPlatform/getWarningSetting',
    method: 'post'
  })
}

export function getCategoryList() {
  return request({
    url: '/goodsMarket/getCategoryList',
    method: 'post'
  })
}

export function getGoodsMarketList(data) {
  return request({
    url: '/goodsPlatform/getGoodsMarketList',
    method: 'post',
    data
  })
}

export function getGoodsMarketListAll() {
  return request({
    url: '/goodsPlatform/getGoodsMarketListAll',
    method: 'post'
  })
}
export function addGoods(data) {
  return request({
    url: '/goodsPlatform/addGoods ',
    method: 'post',
    data
  })
}

// 加载库存预警
export function getWarningNum() {
  return request({
    url: '/goodsPlatform/getWarningNum',
    method: 'post'
  })
}
// 保存库存预警
export function saveWarningNum(data) {
  return request({
    url: '/goodsPlatform/saveWarningNum',
    method: 'post',
    data
  })
}

// 加载价格预警
export function getWarningPrice() {
  return request({
    url: '/goodsPlatform/getWarningPrice',
    method: 'post'
  })
}

// 保存价格预警
export function saveWarningPrice(data) {
  return request({
    url: '/goodsPlatform/saveWarningPrice',
    method: 'post',
    data
  })
}

// 添加自定义饰品
export function saveManualData(data) {
  return request({
    url: '/goodsPlatform/saveManualData',
    method: 'post',
    data
  })
}

// 修改自定义饰品
export function updateManualData(data) {
  return request({
    url: '/goodsPlatform/updateManualData',
    method: 'post',
    data
  })
}

// 删除饰品
export function deleteData(data) {
  return request({
    url: '/goodsPlatform/deleteData',
    method: 'post',
    data
  })
}

// 修改饰品自定义价格
export function updateGoodsPrice(data) {
  return request({
    url: '/goodsPlatform/updateGoodsPrice',
    method: 'post',
    data
  })
}
// 修改箱子内自定义价格
export function setBoxPremiumDetail(data) {
  return request({
    url: '/box/setBoxPremiumDetail',
    method: 'post',
    data
  })
}

// 获取修改页数据
// {"id":1}
export function getUpdateIdData(data) {
  return request({
    url: '/goodsPlatform/getData',
    method: 'post',
    data
  })
}

// 获取自定义价格管理
export function getSettingNum() {
  return request({
    url: '/goodsPlatform/getSettingNum',
    method: 'post'
  })
}

// 设置自定义价格管理 { "num":1 }
export function setSettingNum(data) {
  return request({
    url: '/goodsPlatform/setSettingNum',
    method: 'post',
    data
  })
}
// 上传箱子自定义
export function saveBoxPremiumData(data) {
  return request({
    url: '/box/saveBoxPremiumData',
    method: 'post',
    data
  })
}
// 获取箱子自定义
export function getBoxPremiumData(data) {
  return request({
    url: '/box/getBoxPremiumData',
    method: 'post',
    data
  })
}

// 上传箱内价格预警
export function saveBoxGoodsWarning(data) {
  return request({
    url: '/goodsPlatform/saveBoxGoodsWarning',
    method: 'post',
    data
  })
}
// 获取箱内价格预警
export function getBoxGoodsWarning(data) {
  return request({
    url: '/goodsPlatform/getBoxGoodsWarning',
    method: 'post',
    data
  })
}
// 获取问号
export function getBoxGoodsWarningList(data) {
  return request({
    url: '/goodsPlatform/getBoxGoodsWarningList',
    method: 'post',
    data
  })
}
export function getCategoryQualityList(data) {
  return request({
    url: '/goodsMarket/getCategoryQualityList',
    method: 'post',
    data
  })
}
export function getCategoryExteriorList(data) {
  return request({
    url: '/goodsMarket/getCategoryExteriorList',
    method: 'post',
    data
  })
}
export function getCategoryTypeList(data) {
  return request({
    url: '/goodsMarket/getCategoryTypeList',
    method: 'post',
    data
  })
}